import request from '@/utils/request'

export const roomAPI = {
  list: (hotelId, page = 1, size = 8, search = '') => request.get('/po/rooms', { params: { hotelId, page, size, search } }),
  create: (data) => request.post('/po/rooms', data),
  update: (data) => request.put('/po/rooms', data),
  remove: (id) => request.delete(`/po/rooms/${id}`),
  priceOn: (roomId, date) => request.get(`/po/rooms/price/${roomId}/on`, { params: { date } })
}


